export default [
  {
    name: 'history-manage',
    path: '/history-manage',
    component: () => import('@/layout'),
    alwaysShow: true,
    meta: { title: '资源维护历史', icon: 'time-range' },
    permissions: [
      'history-manage:history:page',
      'history-manage:giveup:page',
      'history-manage:fb-number-history:page'
      // 'history-manage:resources-fb-advert-history:page',  // TODO
      // 'history-manage:resources-fb-advert-giveup:page'  // TODO
    ],
    children: [
      {
        name: 'resources-history',
        path: 'resources-history',
        component: () => import('@/views/history-manage/history'),
        meta: { title: '投放站点维护历史' },
        permissions: ['history-manage:history:page']
      },
      {
        name: 'resources-giveup',
        path: 'resources-giveup',
        component: () => import('@/views/history-manage/giveup'),
        meta: { title: '投放站点弃用记录' },
        permissions: ['history-manage:giveup:page']
      },
      {
        name: 'resources-fb-number-history',
        path: 'resources-fb-number-history',
        component: () => import('@/views/history-manage/fb-number-history'),
        meta: { title: 'FB投放个号维护历史' },
        permissions: ['history-manage:fb-number-history:page']
      },
      {
        name: 'resources-fb-advert-history',
        path: 'resources-fb-advert-history',
        component: () =>
          import('@/views/history-manage/resources-fb-advert-history'),
        meta: { title: 'FB广告账户维护历史' }
        // permissions: ['history-manage:resources-fb-advert-history:page'] // TODO
      },
      {
        name: 'resources-fb-advert-giveup',
        path: 'resources-fb-advert-giveup',
        component: () =>
          import('@/views/history-manage/resources-fb-advert-giveup'),
        meta: { title: 'FB广告账户弃用记录' }
        // permissions: ['history-manage:resources-fb-advert-giveup:page'] // TODO
      }
    ]
  }
];
